#pragma once
#include<iostream>
#include<string>
using namespace std;

void AdjustUp(int* a, int kid);
void AdjustDown(int* a, int size, int parent);

int GetMidIndex(int* a, int left, int right);
int HoareVersion(int* a, int left, int right);

void InsertSort(int* a, int n);
void ShellSort(int* a, int n);

void SelectSort(int* a, int n);
void HeapSort(int* a, int n);

void BubbleSort(int* a, int n);
void QuickSort(int* a, int left, int right);